<template>
    <div class="container">
        <upNavbar :title="title" :bgColor="'#fff'"></upNavbar>
        <div class="textBox">
            <web-view style="margin-top: 2rem;" :src="url"></web-view>
        </div>
    </div>
</template>

<script setup lang="ts">
import { getUserService } from '@/api/login'
import { ref, reactive } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import upNavbar from '../../components/upNavbar.vue';
// getUserService().then((res: any) => {
//     console.log(res);
// });
const url = ref('')
const title = ref('')
const getData = async () => {
    // const response = await getUserService()
    // console.log("🚀 ~ response:", response)
}
onLoad((options) => {
    if (options.urlData) {
        url.value = options.urlData
    }
    if (options.title) {
        title.value = options.title
    }
    getData()
})
</script>
<style scoped lang="scss">
.container {
    width: 100%;
    height: calc(100vh - 2rem);
    margin-top: 2rem;
    background: linear-gradient(180deg, #F2E8E7, #FFF1E8);

    // .textBox {
    //     width: 94%;
    //     height: 92%;
    //     margin: 1% auto 0;
    //     padding: 2%;
    //     background-color: #fff;
    // }
}
</style>